Rails.application.routes.draw do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

  mount API => '/'

  mount GrapeSwaggerRails::Engine => '/:api_type/docs',
        constraints: { api_type: /(api|open_api|open_api2)/ }
end
